using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using BLL;
namespace QLSV
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void xemDSKhoaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            /*frmHienthiDanhsachkhoa f = new frmHienthiDanhsachkhoa();
            f.Show();*/
            KhoaDAL khoadal = new KhoaDAL();
            dataGridView1.DataSource = khoadal.GetAll();
            dataGridView1.AutoResizeColumns();
        }

        private void suaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmSuaKHOA f = new frmSuaKHOA();
            f.Show();

        }

        private void xemDSSVToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SinhvienDAL svdal = new SinhvienDAL();
            dataGridView1.DataSource = svdal.GetAll();
            dataGridView1.AutoResizeColumns();
        }

        private void suaDSSVToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmSuaSV f1 = new frmSuaSV();
            f1.Show();
        }

        private void xemDSMHToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MonhocDAL mhdal = new MonhocDAL();
            dataGridView1.DataSource = mhdal.GetAll();
            dataGridView1.AutoResizeColumns();
        }

        private void xemDSDTToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DiemthiDAL dtdal = new DiemthiDAL();
            dataGridView1.DataSource = dtdal.GetAll();
            dataGridView1.AutoResizeColumns();
        }

        private void suaMonHocToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmSuaMH     f2 = new frmSuaMH();
            f2.Show();
        }

        private void suaDiemToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmSuaDT f = new frmSuaDT();
            f.Show();
        }

        private void themKhoaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmThemKhoa f = new frmThemKhoa();
            f.Show();
        }

        private void themMonHocToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmThemMH f = new frmThemMH();
            f.Show();
        }


        
    }
}